package com.easy.mapper;

import com.easy.bean.Product;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductDao {
    int add(@Param("param") Product product);
    int del(@Param("id") Integer id);
    int edit(@Param("param") Product product);
    Product one(@Param("id") Integer id);
    List<Product> all(@Param("name") String name, @Param("category") String category);
    int pageCount(@Param("param") Product product);
    List<Product> page(@Param("page") Page page, @Param("param") Product product);
}
